\hypertarget{classDoubleLinkedList_1_1const__iterator}{}\doxysection{Double\+Linked\+List$<$ DT $>$\+::const\+\_\+iterator Class Reference}
\label{classDoubleLinkedList_1_1const__iterator}\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}


A brief discprition of \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} The \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} is unable to change member variables, but can visit objects of constant type.  




{\ttfamily \#include $<$Double\+Linked\+List.\+h$>$}



Inheritance diagram for Double\+Linked\+List$<$ DT $>$\+::const\+\_\+iterator\+:
% FIG 0


Collaboration diagram for Double\+Linked\+List$<$ DT $>$\+::const\+\_\+iterator\+:
% FIG 1
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a112ee57553bfe22c9a26c21267bfd226}\label{classDoubleLinkedList_1_1const__iterator_a112ee57553bfe22c9a26c21267bfd226}} 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a112ee57553bfe22c9a26c21267bfd226}{const\+\_\+iterator}} ()
\begin{DoxyCompactList}\small\item\em Construct a new const iterator object. \end{DoxyCompactList}\item 
const DT \& \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a3402baf1083aa613ca04732e7d783179}{operator$\ast$}} () const
\begin{DoxyCompactList}\small\item\em Redefine the operator $\ast$, using for read the data of the node. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \& \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a4f6c7762f7932f1abcd6286b9c8360e1}{operator++}} ()
\begin{DoxyCompactList}\small\item\em Redefine the operator ++(front type). current point to the next node. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \& \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_ac942285901621d71c0ea312ee2e16149}{operator++}} (int)
\begin{DoxyCompactList}\small\item\em Redefine the operator ++(back type) Due to old is temporary, usage of reference is wrong. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \& \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_ad93b067ec784301698d9890c721d3668}{operator-\/-\/}} ()
\begin{DoxyCompactList}\small\item\em visit the previous node \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_acfca335a1870bcccdb3f656b95ed1fad}{operator-\/-\/}} (int)
\begin{DoxyCompactList}\small\item\em visit the previous node \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a512b2d20b89afad27ab692e8ea1134d4}{operator==}} (const \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \&rhs) const
\begin{DoxyCompactList}\small\item\em Redefine == Judje whether two iterators are identical. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a2446ddd53bbc08c8b2fcc333db23ccb4}{operator!=}} (const \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \&rhs) const
\begin{DoxyCompactList}\small\item\em akin to the overload == \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
DT \& \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_ae1db2e1e4c42600c184f6162157e4635}{retrieve}} () const
\begin{DoxyCompactList}\small\item\em Return the reference of data pointed by current. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a32e0bd5fcc6b2379ab6ffceb154a3058}{const\+\_\+iterator}} (Node $\ast$p)
\begin{DoxyCompactList}\small\item\em Construct a new const iterator object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a746a66ff1facbbf98a43e86cd6d11724}\label{classDoubleLinkedList_1_1const__iterator_a746a66ff1facbbf98a43e86cd6d11724}} 
Node $\ast$ \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_a746a66ff1facbbf98a43e86cd6d11724}{current}}
\begin{DoxyCompactList}\small\item\em Copy the pointer of node in existence It\textquotesingle{}s procted thus it could be visited by the inheritance of the class. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_acd436ad14dcf75e42eec3f1544e934f3}\label{classDoubleLinkedList_1_1const__iterator_acd436ad14dcf75e42eec3f1544e934f3}} 
class \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator_acd436ad14dcf75e42eec3f1544e934f3}{Double\+Linked\+List$<$ DT $>$}}
\begin{DoxyCompactList}\small\item\em able to visit any member in Double\+LInked\+List \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename DT$>$\newline
class Double\+Linked\+List$<$ DT $>$\+::const\+\_\+iterator}

A brief discprition of \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} The \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} is unable to change member variables, but can visit objects of constant type. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a32e0bd5fcc6b2379ab6ffceb154a3058}\label{classDoubleLinkedList_1_1const__iterator_a32e0bd5fcc6b2379ab6ffceb154a3058}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!const\_iterator@{const\_iterator}}
\index{const\_iterator@{const\_iterator}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{const\_iterator()}{const\_iterator()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::const\+\_\+iterator (\begin{DoxyParamCaption}\item[{Node $\ast$}]{p }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}



Construct a new const iterator object. 


\begin{DoxyParams}{Parameters}
{\em p} & \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a2446ddd53bbc08c8b2fcc333db23ccb4}\label{classDoubleLinkedList_1_1const__iterator_a2446ddd53bbc08c8b2fcc333db23ccb4}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
bool \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator!= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



akin to the overload == 


\begin{DoxyParams}{Parameters}
{\em rhs} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a3402baf1083aa613ca04732e7d783179}\label{classDoubleLinkedList_1_1const__iterator_a3402baf1083aa613ca04732e7d783179}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator$\ast$()}{operator*()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
const DT\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator$\ast$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Redefine the operator $\ast$, using for read the data of the node. 

\begin{DoxyReturn}{Returns}
const DT\& 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a4f6c7762f7932f1abcd6286b9c8360e1}\label{classDoubleLinkedList_1_1const__iterator_a4f6c7762f7932f1abcd6286b9c8360e1}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator++@{operator++}}
\index{operator++@{operator++}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}}\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator++ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Redefine the operator ++(front type). current point to the next node. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}}\& 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_ac942285901621d71c0ea312ee2e16149}\label{classDoubleLinkedList_1_1const__iterator_ac942285901621d71c0ea312ee2e16149}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator++@{operator++}}
\index{operator++@{operator++}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}}\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator++ (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Redefine the operator ++(back type) Due to old is temporary, usage of reference is wrong. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_ad93b067ec784301698d9890c721d3668}\label{classDoubleLinkedList_1_1const__iterator_ad93b067ec784301698d9890c721d3668}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator-\/-\/@{operator-\/-\/}}
\index{operator-\/-\/@{operator-\/-\/}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator-\/-\/()}{operator--()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}}\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator-\/-\/ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



visit the previous node 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}}\& 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_acfca335a1870bcccdb3f656b95ed1fad}\label{classDoubleLinkedList_1_1const__iterator_acfca335a1870bcccdb3f656b95ed1fad}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator-\/-\/@{operator-\/-\/}}
\index{operator-\/-\/@{operator-\/-\/}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator-\/-\/()}{operator--()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator-\/-\/ (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



visit the previous node 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_a512b2d20b89afad27ab692e8ea1134d4}\label{classDoubleLinkedList_1_1const__iterator_a512b2d20b89afad27ab692e8ea1134d4}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!operator==@{operator==}}
\index{operator==@{operator==}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
bool \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classDoubleLinkedList_1_1const__iterator}{const\+\_\+iterator}} \&}]{rhs }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Redefine == Judje whether two iterators are identical. 


\begin{DoxyParams}{Parameters}
{\em rhs} & Transmit the pointer of the node into \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1const__iterator_ae1db2e1e4c42600c184f6162157e4635}\label{classDoubleLinkedList_1_1const__iterator_ae1db2e1e4c42600c184f6162157e4635}} 
\index{DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}!retrieve@{retrieve}}
\index{retrieve@{retrieve}!DoubleLinkedList$<$ DT $>$::const\_iterator@{DoubleLinkedList$<$ DT $>$::const\_iterator}}
\doxysubsubsection{\texorpdfstring{retrieve()}{retrieve()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
DT\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::const\+\_\+iterator\+::retrieve (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}



Return the reference of data pointed by current. 

\begin{DoxyReturn}{Returns}
DT\& 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{DoubleLinkedList_8h}{Double\+Linked\+List.\+h}}\end{DoxyCompactItemize}
